import request from '@/utils/request'
// 品牌管理
export function getBrandList() {
  return request({
    url: '/api/back/shop/commodityBrand',
    method: 'get',
    params: { type: 'list' }
  })
}
export function addOrEditBrandItem({ zh_name, en_name, brand_name, brand_img, links, id, sort }) {
  return request({
    url: '/api/back/shop/commodityBrand',
    method: 'post',
    params: { type: 'change', status: 1 },
    data: { zh_name, en_name, brand_name, brand_img, links, id, sort }
  })
}
// 刪除
export function deleteBrandItem(id) {
  return request({
    url: '/api/back/shop/commodityBrand',
    method: 'post',
    params: { id },
    data: { type: 'delete' }
  })
}
